<form action="<?php url('note/insert');?>" method="post">
    <label for="plan">Plan</label>
    <select name="plan">
	<option value="0">请选择</option>
	<?php foreach($plans as $plan):?>
	<option value="<?php echo $plan->id;?>"><?php echo $plan->name;?></option>
	<?php endforeach;?>
    </select>
    <label for="content">Content</label>
    <textarea name="content" cols="50" rows="5"></textarea>
    <br/>
    <input type="submit" value="Insert" />
    <a href="<?php echo url('note/index'); ?>">返回列表</a>
</form>